package com.frejoys.common.dto.agent;

import com.frejoys.common.dto.admin.UpAgentRoleGroupRatioDto;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author wangzhicheng
 * @version 1.0
 * @date 2024/4/24 15:42
 */
@Data
public class AgentRoleGroupUpdateDto extends UpAgentRoleGroupRatioDto {

    @NotNull(message = "{600}")
    @Schema(type = "Integer", name = "id", description = "id", required = true, defaultValue = "1")
    private Integer id;

    //角色名称
//    @NotBlank(message = "{600}")
    @Schema(type = "String", name = "name", description = "组名称", required = true, defaultValue = "测试")
    private String name;

    //管理人id
//    @NotNull(message = "{600}")
    @Schema(type = "Long", name = "userId", description = "管理人id", required = true, defaultValue = "1")
    private Long userId;

    //返利比例
//    @NotNull(message = "{600}")
    @Schema(type = "Float", name = "rebateRatio", description = "返利比例",  defaultValue = "1")
    private Float rebateRatio;
}
